package com.seawaterbt.ssm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

@TableName("DAT_HouseHoldData")
@Getter
@Setter
public class ShengDatHouseHoldData {

    @TableField("HouseHoldID")
    private String houseHoldId;

    @TableField("GetTime")
    private Date getTime;

    @TableField("InstantaneousFlow")
    private Double instantaneousFlow;

    @TableField("CumulativeHeat")
    private Double cumulativeHeat;

    @TableField("SupplyTemp")
    private Double supplyTemp;

    @TableField("BackTemp")
    private Double backTemp;

    @TableField("SupplyPre")
    private Double supplyPre;

    @TableField("BackPre")
    private Double backPre;

    @TableField("AddTime")
    private Date addTime;


    private static DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    @Override
    public String toString() {
        return "ShengDatCrewData{" +
                "houseHoldId='" + houseHoldId + '\'' +
                ", getTime=" + df.format(getTime) +
                ", instantaneousFlow=" + instantaneousFlow +
                ", cumulativeHeat=" + cumulativeHeat +
                ", supplyTemp=" + supplyTemp +
                ", backTemp=" + backTemp +
                ", supplyPre=" + supplyPre +
                ", backPre=" + backPre +
                ", addTime=" + df.format(addTime) +
                '}';
    }
}
